package com.coupon.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author :wn
 * @program : coupon
 * @descript :
 * @create :2021-01-05 10:20
 */

public class Coupon implements Serializable {
    private static final long serialVersionUID = -7675310317730493470L;
    private Integer id;
    private String name;
    private String desc;
    private String role;
    private String img;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date collectExpire;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date useExpire;
    private boolean inUse;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getCollectExpire() {
        return collectExpire;
    }

    public void setCollectExpire(Date collectExpire) {
        this.collectExpire = collectExpire;
    }

    public Date getUseExpire() {
        return useExpire;
    }

    public void setUseExpire(Date useExpire) {
        this.useExpire = useExpire;
    }

    public boolean isInUse() {
        return inUse;
    }

    public void setInUse(boolean inUse) {
        this.inUse = inUse;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Coupon{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
